package cn.shop.cloud.web.vo;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @program: shop-parent
 * @ClassName LoginVo
 * @description:
 * @author: Mokio
 * @create: 2024−12-24 11:40
 * @Version 2024 2.2 ; jdk1.8.0_181
 **/
public class LoginVo implements Serializable {

    @Pattern(regexp = "1[3568]\\d{9}",message = "手机格式不正确哦(๑•́ ₃ •̀๑)")
    private String username;

    @NotEmpty(message = "密码不能为空哦(´-ω-｀)")
    private String password;

    public LoginVo() {
    }

    public LoginVo(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
